package com.lwy.user.controller;

import com.lwy.common.Result;
import com.lwy.common.StatusCode;
import com.lwy.goods.pojo.TbSku;
import com.lwy.goods.pojo.TbUser;
import com.lwy.user.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("user")
public class controller {

    @Autowired
    UserServiceImpl userService;

    @RequestMapping("list")
    public Result<List<TbUser>> list(){

        List<TbUser> list = userService.list();
        return new Result<List<TbUser>>(true, StatusCode.OK,"商品查询",list);
    }

}
